=================================================================================
   :       
            .
=================================================================================

  :

=================================================================================
 :   

showthread.php

 

// #############################################################################
// output page

=================================================================================

 

//############################################################################
//# START MULTI QUOTE                                                        #
//############################################################################
eval('$mq_script = "'.fetch_template('mq_script').'";');
//############################################################################
//# END MULTI QUOTE                                                          #
//############################################################################

=================================================================================

 :  

newreply.php

 

else if ($postid AND $_POST['do'] != 'postreply')
{
	$newpost['title'] = htmlspecialchars_uni(fetch_quote_title('', $threadinfo['title']));
}

=================================================================================

 

//############################################################################
//# START MULTI QUOTE                                                        #
//############################################################################
if(isset($_COOKIE[COOKIE_PREFIX . 'mq']))
{
    $pids = $_COOKIE[COOKIE_PREFIX . 'mq'];
    $pids = urldecode($pids);

    if(!empty($pids) && preg_match("/^[0-9,]+$/", $pids))
    {
        if($_REQUEST['noquote'])
            $mq_postid = '';
        elseif(!empty($postinfo['postid']))
            $mq_postid = "AND postid <> {$postinfo['postid']}";
        else
            $mq_postid = '';

        $q = $DB_site->query("SELECT username, pagetext FROM ".TABLE_PREFIX."post WHERE postid IN($pids) $mq_postid ORDER BY postid ASC LIMIT 20");
        while($row = $DB_site->fetch_array($q))
        {
            $originalposter = fetch_quote_username($row['username']);
            $pagetext = htmlspecialchars_uni($row['pagetext']);
            $pagetext = trim(strip_quotes($pagetext));
            eval('$newpost[\'message\'] .= "' . fetch_template('newpost_quote', 1, 0) . '\n";');
        }
    }

    setcookie(COOKIE_PREFIX . 'mq', '', time() - 3600, $vboptions['cookiepath'], $vboptions['cookiedomain']);
}
//############################################################################
//# END MULTI QUOTE                                                          #
//############################################################################

=================================================================================

 :      

 : mq_script

 :

<script language="javascript">
<if condition="empty($cookieprefix)">
var mq_cookie_prefix = 'bb';
<else />
var mq_cookie_prefix = '$cookieprefix';
</if>
var mq_cookie_path   = '$vboptions[cookiepath]';
var mq_cookie_domain = '$vboptions[cookiedomain]';
var mq_img_on  = '$stylevar[imgdir_button]/mq_img_on.gif';
var mq_img_off = '$stylevar[imgdir_button]/mq_img_off.gif';


/******************************************************
 ******************** MAIN SCRIPT *********************
 ******************************************************/
if(mq_cookie_path != '')
    mq_cookie_path = 'path=' + mq_cookie_path + '; ';
if(mq_cookie_domain != '')
    mq_cookie_domain = 'domain=' + mq_cookie_domain + ';';

function mq_init()
{
    var cookie = getCookie('mq');
    if(cookie)
    {
        var values = cookie.split(',');

        for(var i = 0; i < values.length; i++)
        {
            var itm;
            var id = 'mq_post_' + values[i];

            if (document.getElementById)
                itm = document.getElementById(id);
            else if (document.all)
                itm = document.all[id];
            else if (document.layers)
                itm = document.layers[id];

            if(itm)
                itm.src = mq_img_on;
        }
    }
}

function makeCookie(name, value)
{
    var cookie = mq_cookie_prefix + name + '=' + escape(value) + '; ' + mq_cookie_path + mq_cookie_domain;
    document.cookie = cookie;
}

function getCookie(name)
{
    if(document.cookie == '')
        return false;

    name = mq_cookie_prefix + name;
    var firstPos;
    var lastPos;
    var cookie = document.cookie;

    firstPos = cookie.indexOf(name);

    if(firstPos != -1)
    {
        firstPos += name.length + 1;
        lastPos = cookie.indexOf(';', firstPos);

        if(lastPos == -1)
            lastPos = cookie.length;

        return unescape(cookie.substring(firstPos, lastPos));
	}

    else
        return false;
}

function multiquote(id, img)
{
    cookie = getCookie('mq');
    values = new Array();
    newval = new Array();
    add    = 1;
    
    if(cookie)
    {
        values = cookie.split(',');

        for(var i = 0; i < values.length; i++)
        {
            if(values[i] == id) {
                 add = 0;
            } else {
                newval[newval.length] = values[i];
            }
        }
    }

    if(add) {
        newval[newval.length] = id;
        img.src = mq_img_on;
    } else {
        img.src = mq_img_off;
    }
    
    makeCookie('mq', newval.join(','));
    return false;
}
</script>

=================================================================================

 :  

Postbit  postbit_legacy

  

<if condition="$post['replylink']">
<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply_with_quote]" border="0" width="55" height="17" /></a>
</if>

=================================================================================

 

<img src="$stylevar[imgdir_button]/mq_img_off.gif" alt="$vbphrase[multi_quote]" border="0" width="21" height="15" name="mq_post_$post[postid]" id="mq_post_$post[postid]" onclick="multiquote($post[postid], this)" style="cursor: hand" />

=================================================================================

                   
        

=================================================================================
 :  

SHOWTHREAD

 

$headinclude
</head>
<body onload="$onload">

=================================================================================

 

$headinclude
$mq_script
</head>
<body onload="$onload; mq_init();">

=================================================================================

 :      

 : Show Thread

  : multi_quote

 :       

=================================================================================

 :          

images/buttons

  buttons    

=================================================================================

      ...................................

 :  
   
http://mwadah.com
mrs@mwadah.com

=================================================================================